FROM python:3.7.8
WORKDIR /www/flaskapp
COPY ./requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

COPY . .
#CMD ["gunicorn", "-w", "5", "-b", "0.0.0.0:5000", "important:app"]
EXPOSE 5000
CMD ["python3","important.py"]
